package com.itheima.arraylist;

import java.util.ArrayList;

public class ArrayListTest {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("迪丽热巴");
        list.add("古力拉扎");
        list.add("马尔扎哈");
        list.add(0,"德玛西亚");
        list.remove("马尔扎哈");
        list.remove(0);
        String s = list.get(0);
        System.out.println(s);
        list.set(1,"柳岩");
        System.out.println(list);
        int size = list.size();
        System.out.println(size);
    }
}
